package org.duiduo.mapper;

import org.apache.ibatis.annotations.Select;
import org.duiduo.domain.Role;

import java.util.List;

public interface RoleMapper {

    @Select("select * from sys_user_role ur,sys_role r where ur.roleid=r.id and ur.userid = #{uid}")
    List<Role> findByUid(int uid);

}
